package com.exsun.gateway.jt809.data.Interface;

import exsun.jt808.data.jt809_data.ReceiveEntityBase;
import exsun.jt808.data.jt809_data.SendBaseEntity;

public interface IReceiveService<T1 extends ReceiveEntityBase, T2 extends SendBaseEntity> {
    int GetMsgId();

    T1 decoder(ReceiveEntityBase receiveEntityBase);

    T2 handle(T1 entity) throws Exception;

    ISendService response(T2 entity);
}
